#include<cstdio>
#include<cstdlib>
#include<iostream>
#include<string>
#include<fstream>
#include<cstring>
#define MAX 1000

using namespace std;

struct grade
{
	int chi;
	int mat;
	int eng;
	int pro1;
	int pro2;
	int pro3;
	int con;
};
struct student
{
	int state;
	char nm[20];
	char id[20];
	int sub;
	grade grade;
	int total;
};
struct test
{
    int state;
    char name[100];
    int date[3];
	int alrstu;
};
extern student stu[10][MAX];extern test tt[10];extern int tesl;
extern int tnum;
void printmain();
void printgrd(student stu);
void grdedit(student *stu);
void testn();
void testcoi();
void admin();
int adminmenu();
int addstu(int a);
int totalm(student stu);
void adminser();
void adminedit();
void deletestu();
void normalser();
